/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayOutOrderDetailCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayOutOrderDetailCriteria create() {
		return new PayOutOrderDetailCriteria();
	}
	
	public static PayOutOrderDetailCriteria create(Column column) {
		PayOutOrderDetailCriteria that = new PayOutOrderDetailCriteria();
		that.add(column);
        return that;
    }

    public static PayOutOrderDetailCriteria create(String name, Object value) {
        return (PayOutOrderDetailCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_out_order_detail", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayOutOrderDetailCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayOutOrderDetailCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderDetailCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayOutOrderDetailCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayOutOrderDetailCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayOutOrderDetailCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayOutOrderDetailCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayOutOrderDetailCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayOutOrderDetailCriteria andPayOutOrderDetailIdIsNull() {
		isnull("pay_out_order_detail_id");
		return this;
	}
	
	public PayOutOrderDetailCriteria andPayOutOrderDetailIdIsNotNull() {
		notNull("pay_out_order_detail_id");
		return this;
	}
	
	public PayOutOrderDetailCriteria andPayOutOrderDetailIdIsEmpty() {
		empty("pay_out_order_detail_id");
		return this;
	}

	public PayOutOrderDetailCriteria andPayOutOrderDetailIdIsNotEmpty() {
		notEmpty("pay_out_order_detail_id");
		return this;
	}
       public PayOutOrderDetailCriteria andPayOutOrderDetailIdEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.EQUAL, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdNotEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.NOT_EQUAL, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdGreaterThan(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.GREATER_THEN, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.GREATER_EQUAL, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdLessThan(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.LESS_THEN, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_detail_id", value, ConditionMode.LESS_EQUAL, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("pay_out_order_detail_id", value1, value2, ConditionMode.BETWEEN, "payOutOrderDetailId", "java.lang.Long", "Float");
    	  return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("pay_out_order_detail_id", value1, value2, ConditionMode.NOT_BETWEEN, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }
        
      public PayOutOrderDetailCriteria andPayOutOrderDetailIdIn(List<java.lang.Long> values) {
          addCriterion("pay_out_order_detail_id", values, ConditionMode.IN, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderDetailIdNotIn(List<java.lang.Long> values) {
          addCriterion("pay_out_order_detail_id", values, ConditionMode.NOT_IN, "payOutOrderDetailId", "java.lang.Long", "Float");
          return this;
      }
	public PayOutOrderDetailCriteria andPayOutOrderIdIsNull() {
		isnull("pay_out_order_id");
		return this;
	}
	
	public PayOutOrderDetailCriteria andPayOutOrderIdIsNotNull() {
		notNull("pay_out_order_id");
		return this;
	}
	
	public PayOutOrderDetailCriteria andPayOutOrderIdIsEmpty() {
		empty("pay_out_order_id");
		return this;
	}

	public PayOutOrderDetailCriteria andPayOutOrderIdIsNotEmpty() {
		notEmpty("pay_out_order_id");
		return this;
	}
       public PayOutOrderDetailCriteria andPayOutOrderIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.EQUAL, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.NOT_EQUAL, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.GREATER_THEN, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.GREATER_EQUAL, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdLessThan(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.LESS_THEN, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_out_order_id", value, ConditionMode.LESS_EQUAL, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_out_order_id", value1, value2, ConditionMode.BETWEEN, "payOutOrderId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_out_order_id", value1, value2, ConditionMode.NOT_BETWEEN, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayOutOrderDetailCriteria andPayOutOrderIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_out_order_id", values, ConditionMode.IN, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderDetailCriteria andPayOutOrderIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_out_order_id", values, ConditionMode.NOT_IN, "payOutOrderId", "java.lang.Integer", "Float");
          return this;
      }
	public PayOutOrderDetailCriteria andRemarkIsNull() {
		isnull("remark");
		return this;
	}
	
	public PayOutOrderDetailCriteria andRemarkIsNotNull() {
		notNull("remark");
		return this;
	}
	
	public PayOutOrderDetailCriteria andRemarkIsEmpty() {
		empty("remark");
		return this;
	}

	public PayOutOrderDetailCriteria andRemarkIsNotEmpty() {
		notEmpty("remark");
		return this;
	}
        public PayOutOrderDetailCriteria andRemarkLike(java.lang.String value) {
    	   addCriterion("remark", value, ConditionMode.FUZZY, "remark", "java.lang.String", "Float");
    	   return this;
      }

      public PayOutOrderDetailCriteria andRemarkNotLike(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.NOT_FUZZY, "remark", "java.lang.String", "Float");
          return this;
      }
      public PayOutOrderDetailCriteria andRemarkEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkNotEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.NOT_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkGreaterThan(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.GREATER_THEN, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.GREATER_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkLessThan(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.LESS_THEN, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkLessThanOrEqualTo(java.lang.String value) {
          addCriterion("remark", value, ConditionMode.LESS_EQUAL, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("remark", value1, value2, ConditionMode.BETWEEN, "remark", "java.lang.String", "String");
    	  return this;
      }

      public PayOutOrderDetailCriteria andRemarkNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("remark", value1, value2, ConditionMode.NOT_BETWEEN, "remark", "java.lang.String", "String");
          return this;
      }
        
      public PayOutOrderDetailCriteria andRemarkIn(List<java.lang.String> values) {
          addCriterion("remark", values, ConditionMode.IN, "remark", "java.lang.String", "String");
          return this;
      }

      public PayOutOrderDetailCriteria andRemarkNotIn(List<java.lang.String> values) {
          addCriterion("remark", values, ConditionMode.NOT_IN, "remark", "java.lang.String", "String");
          return this;
      }
}